#ifndef __TouchEvent_h__
#define __TouchEvent_h__
#include "Framework.h"

typedef void (*TouchCustomEventFunc) (VMINT x, VMINT y);

typedef struct
{
	TouchCustomEventFunc TouchDownCustomEventHandle;
	TouchCustomEventFunc TouchMoveCustomEventHandle;
	TouchCustomEventFunc TouchUpCustomEventHandle;
	TouchCustomEventFunc TouchLongCustomEventHandle;
	TouchCustomEventFunc TouchDoubleCustomEventHandle;
	TouchCustomEventFunc TouchRepeatCustomEventHandle;
}mmi_touch_func;

extern void RegisterTouchDownCustomEventHandle(TouchCustomEventFunc func);
extern void RegisterTouchMoveCustomEventHandle(TouchCustomEventFunc func);
extern void RegisterTouchUpCustomEventHandle(TouchCustomEventFunc func);
extern void RegisterTouchLongCustomEventHandle(TouchCustomEventFunc func);
extern void RegisterTouchDoubleCustomEventHandle(TouchCustomEventFunc func);
extern void RegisterTouchRepeatCustomEventHandle(TouchCustomEventFunc func);

extern void TouchEventInit(void);

extern void TouchEventHandle(VMINT event, VMINT x, VMINT y);

#endif
